package com.qidian.mes.defect.service;

import com.qidianit.common.pojo.MESResult;
import com.qidianit.mes.pojo.Defect;

public interface DefectService {
    /**
     * 增
     * @param defect
     * @return
     */
    MESResult save(Defect defect);
    //删
    MESResult delete(Long defectId);
    //批量删除
    MESResult deletes(Long[] defectIds);
    //改
    MESResult update(Defect defect);

    //分页查询
    MESResult list(String defectDescription,String defectType,String defectGrade,int page, int limit);

    //通过id查询这一条数据
    MESResult selectById(Long defectId);


}
